# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=gcovr
pkgver=5.1
pkgrel=0
pkgdesc="Generates a simple report that summarizes the gcc code coverage"
url="http://gcovr.com/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-setuptools py3-lxml py3-jinja2"
checkdepends="py3-pytest py3-pyutilib cmake"
source="gcovr-$pkgver.tar.gz::https://github.com/gcovr/gcovr/archive/$pkgver.tar.gz"
options="!check" # tests are failing

build() {
	python3 setup.py build
}

check() {
	py.test-3 -v gcovr
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
ae2f0d9ad04f2dc851db9bc99a30a5dc1b1f43dbc6336422ecf5228d37f6994406a83e50f1ee6b5c8d6ec6d7b9e2bba726fd3d502dc5022fe359d480e6d267a5  gcovr-5.1.tar.gz
"
